<template>
	2121-{{id}}-{{highlight}}
	{{highlight?'高亮文本':""}}
</template>

<script setup>
	import {
		watch,
		onMounted
	} from 'vue';

	const props = defineProps({
		id: String,
		highlight: {
			type: Boolean,
			default: false
		}
	})
	console.log(props.id, props.highlight);

	// watch(() => props.highlight, (newId, oldId) => {
	// 	console.log(newId, oldId)
	// 	// 对路由变化做出响应...
	// })

	onMounted(() => {
		console.log('onMounted~')
	})
</script>

<style>
</style>